<?php
		/*include_once('init.php');*/


		

        

        $id=!empty($_GET['id'])?$_GET['id']:'';

		$where['status']=$_GET['status'];

		


		

        	
        
        	/*$where['status']=$_GET['status'];*/
        	/*print_r($_GET['status']);die;*/


			$row=edit('news',$where,explode(',',$_GET['id']));

        	/*echo $row;die;*/

       /* print_r($row);die;*/
        			
        
		
			

		
        if ($row>0) {
        	echo '<script>
        	alert("修改成功");location.href="index.php?c=news&a=news&admin=1";</script>';

        }else{

        	echo '<script>alert("修改失败");history.go(-1);</script>';die;
        }
    
		



		
   
   include( VIEW_PATH.$admin.'layst.html');



?>
